<?php
header("content-type:text/html;charset=utf-8");
session_start();
include("../conn/conn.php");
$time=date("Y-m-d");
$liu=$_POST['vpl'];
if($_SESSION['name']!=""){
$sql_pladd="insert into tb_liu(name,liu,time,state) values('".$_SESSION['name']."','".$liu."','".$time."',1)";
mysqli_query($link,$sql_pladd);
echo "<script> alert('评论成功，需要审核才能显示哦！');history.go(-1);</script>";
}
else{
	echo "<script> alert('请登录后评论！');location='../denglu.php';</script>";
	
	}
?>

